Use secrets in conversations - #113
Open
nishu-builder wants to merge 4 commits into
Open
Conversation
nishu-builder
force-pushed
the
codex/conversation-secrets
branch
from
August 19, 2026 21:31
d2a2261 to
fb6f518
Compare
nishu-builder
force-pushed
the
codex/conversation-secrets
branch
from
August 19, 2026 23:58
75c1b6c to
8e19db9
Compare
nishu-builder
changed the base branch from
main
to
codex/constrained-secret-readers
August 19, 2026 23:58
nishu-builder
force-pushed
the
codex/conversation-secrets
branch
from
August 20, 2026 00:36
8e19db9 to
cc41fd0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.caos-secretsstore for TUI,talk, andchatconversation workbase-urlinto everyllm-stepandllm-callArgTreehttps://api.anthropic.comand test readers to their exact local stub URLanthropic-api-keyonly into matching LLM workersrun-asyncwork, including durable subagent conversationsDependency
This PR is stacked on #121, which introduces the generic constrained
reader=grammar. The reader parser, assembler, generic authorization behavior, and generic security tests live there; this PR only applies that facility to conversations and LLM credential destinations.Configuration
caos-cli secretsadds the randomentropy=used for cache isolation. A custom endpoint remains supported when local policy pins that exact URL.Security boundary
Conversation requests carry both the entropy-derived
secret-hashand an explicitbase-url; they never carry the API-key value.llm-stepandllm-callrequire the URL from their ArgTrees instead of relying on a runtime default absent from the authorization key.The raw secret value does not enter an ArgTree, cache key, curry, worker image, or Git object. The server sees it only in ephemeral run context and injects it into an entitled worker at runtime.
Validation
cargo fmt --all -- --checkcargo test --workspacenix buildresult/bin/caos-cli run-tool test(44/44 passed)git diff --check